﻿using star_questionnair.Models;

namespace star_questionnair.Services;

/// <summary>
/// 问题接口层
/// </summary>
public interface IQuestionService
{
    Task<Question> GetQuestionAfterCreateAsync(Question question);
    Task InsertQuestionAsync(int questionnaireId, string type, string content);
    Task<Question> GetQuestionByIdAsync(int questionId);
    Task UpdateQuestionAsync(Question question);
    Task DeleteQuestionAsync(int questionId);
    Task<List<Option>> DisplayOptionsAsync(Question question);
}